﻿<UserControl x:Class="WpfApplication2.HostServiceProperty1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:data="http://schemas.microsoft.com/wpf/2008/toolkit"
             
   >
    <Border BorderThickness="5" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="90" />
            <ColumnDefinition Width="256*" />
            
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="60" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="100" />
            <RowDefinition Height="40" />
            <RowDefinition Height="150" />
            <RowDefinition Height="40" />
            <RowDefinition Height="150" />
            <RowDefinition Height="50" />

        </Grid.RowDefinitions>
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Service Name :" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="Url :" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="3" Grid.Column="0" Text="Label :" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="6" Grid.Column="0" Text="Description :" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontWeight="Bold"></TextBlock>

        <TextBlock Grid.Row="4" Grid.Column="0" Text="Affinity Group :" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
        <TextBlock Grid.Row="5" Grid.Column="0" Text="Location :" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>

        <TextBox Margin="5" x:Name="TextBoxServiceName" IsReadOnly="True"  Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Width="300" Height="30"></TextBox>
        <TextBox Margin="5" x:Name="TextBoxUrl" IsReadOnly="True" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left"  VerticalAlignment="Center"  Width="600" TextWrapping="Wrap" Height="40"></TextBox>
        <TextBox Margin="5" x:Name="TextBoxLabel"  IsReadOnly="True" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Width="300" Height="30"></TextBox>

        <TextBox Margin="5" x:Name="TexBoxAffinityGp" IsReadOnly="True"  Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Width="400" Height="30"></TextBox>
        <TextBox Margin="5" x:Name="TextBoxLocation" IsReadOnly="True" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Width="300" Height="30"></TextBox>
        <TextBox Margin="10" x:Name="TextBoxDescription" IsReadOnly="True" Grid.Row="7" Grid.Column="0" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"  Grid.ColumnSpan="2"></TextBox>


            <TextBlock Text="Deployment Properties :" Grid.Row="8" Grid.ColumnSpan="2" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontWeight="Bold"></TextBlock>
            <data:DataGrid Margin="30,5,30,0" x:Name="DataGridDeployment" Grid.Row="9" Grid.ColumnSpan="2" IsReadOnly="True" AutoGenerateColumns="False">
                <data:DataGrid.Columns>
                    <data:DataGridTextColumn  Header="Name" Binding="{Binding Name}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Deployment Slot" Binding="{Binding DeploymentSlot}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Private ID" Binding="{Binding PrivateID}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Label" Binding="{Binding Label}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Url" Binding="{Binding Url}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Status" Binding="{Binding Status}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Upgrade Type" Binding="{Binding UpgradeType}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Current Upgrade Domain State" Binding="{Binding CurrentUpgradeDomainState}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Current Upgrade Domain " Binding="{Binding CurrentUpgradeDomain}"></data:DataGridTextColumn>
                </data:DataGrid.Columns>
            </data:DataGrid>

            <!--<TextBlock Text="Role Instance List" Grid.Row="10" Grid.ColumnSpan="2" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Bottom"></TextBlock>-->
            <!--<Grid Grid.Row="11" Grid.ColumnSpan="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="25"></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="5"></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Staging" Grid.Row="0" Margin="5" HorizontalAlignment="Center"  VerticalAlignment="Center"></TextBlock>
                <TextBlock Text="Production" Grid.Row="0" Grid.Column="2" Margin="5" HorizontalAlignment="Center"  VerticalAlignment="Center"></TextBlock>
                
            <data:DataGrid Margin="9" x:Name="DataGridStagingDeployment" Grid.Row="11"  IsReadOnly="True" AutoGenerateColumns="False">
                <data:DataGrid.Columns>
                    <data:DataGridTextColumn  Header="Role Name" Binding="{Binding RoleName}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="Instance Name" Binding="{Binding InstanceName}"></data:DataGridTextColumn>
                    <data:DataGridTextColumn  Header="InstanceState" Binding="{Binding InstanceState}"></data:DataGridTextColumn>
                </data:DataGrid.Columns>
            </data:DataGrid>
                <data:DataGrid Margin="9" x:Name="DataGridProductionDeployment" Grid.Row="11" Grid.Column="2"  IsReadOnly="True" AutoGenerateColumns="False">
                    <data:DataGrid.Columns>
                        <data:DataGridTextColumn  Header="Role Name" Binding="{Binding RoleName}"></data:DataGridTextColumn>
                        <data:DataGridTextColumn  Header="Instance Name" Binding="{Binding InstanceName}"></data:DataGridTextColumn>
                        <data:DataGridTextColumn  Header="InstanceState" Binding="{Binding InstanceState}"></data:DataGridTextColumn>
                    </data:DataGrid.Columns>
                </data:DataGrid>
            </Grid>-->


        </Grid>
        </Border>
</UserControl>
